package com.tools.app.task;

import com.hm.base.android.mob.task.MTaskMarkPool;
import com.hm.base.android.mob.task.mark.ATaskMark;
import com.tools.app.task.mark.SubmitReferrerTaskMark;

/**
 * Created by ChenLi on 2017/12/13.
 */

public class AppTaskMarkPool<T extends ATaskMark> extends MTaskMarkPool{

    /**
     * GP推广渠道追踪上报
     *
     * @return
     */
    public SubmitReferrerTaskMark getSubmitReferrerTaskMark() {
        String key = SubmitReferrerTaskMark.class.getSimpleName();
        SubmitReferrerTaskMark taskMark = (SubmitReferrerTaskMark) mTaskMarkMap.get(key);
        if (taskMark == null) {
            taskMark = new SubmitReferrerTaskMark();
            mTaskMarkMap.put(key, taskMark);
        }
        return taskMark;
    }

}
